<template>
<body>
    <!-- 总容器 -->
    <div class="wrapper">
    <header>
      <!-- 使用Vue Router的<router-link>进行跳转 -->

        <!-- 跳转设置 -->
        <li @click="goToIndex">
            <img class="icon" :src="'src/img/left.png'" alt="返回图标"> 
        </li>

      <router-link to="/" class="back-button">
        <i class="fa fa-angle-left"></i>
      </router-link>
      <p>用户体检预约</p>
      <div></div>
    </header>
    <div class="top-ban"></div>

        <section>
            <img src="@/img/yuyue.png">
            <p>

                <img src="@/img/benrenyuyue.png" @click="yuyueToHospital">
                <img src="@/img/jiashuyuyue.png">
            </p>
        </section>
        
        <div class="bottom-ban"></div>
        <Footer></Footer>

    </div>
</body>
</template>

<script>
import axios from 'axios';
import Footer from '@/components/Footer.vue';
export default {
  methods: {
    // 预约去医院的方法，跳转到名为 'hospital' 的路由页面
    yuyueToHospital() {
      this.$router.push({ name: 'hospital' });
    },

    // 跳转到首页的方法，跳转到路径为 '/index' 的路由页面
    goToIndex() {
      this.$router.push('/index');
    }
  },
  
  components: {
    Footer, // 引入 Footer 组件
  }
}


</script>
<style scoped>
/*********************** 总容器 ***********************/
.wrapper{
    width: 100%;
    height: 100%;
}

/*********************** header ***********************/
header li {
list-style-type: none;
}
.icon{
float: left;

width: 80%;
height: 8.2vw;
}


header{
    width: 100%;
    height: 15.7vw;
    background-color: #FFF;

    position: fixed;
    left: 0;
    top: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
    padding: 0 3.6vw;
}
header .fa{
    font-size: 8vw;
}
header li {
    list-style-type: none;
}
.icon{
    float: left;

    width: 80%;
    height: 8.2vw;
}

/*********************** footer ***********************/
footer{
    width: 100%;
    height: 14.2vw;
    box-sizing: border-box;
    border-top: solid 1px #E9E9E9;
    background-color: #FFF;

    position: fixed;
    left: 0;
    bottom: 0;
}
footer ul{
    width: 100%;
    height: 14.2vw;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
footer ul li{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-size: 3vw;
    color: #999;

    user-select: none;
    cursor: pointer;
}
footer ul li .fa{
    font-size: 5vw;
}

/*********************** common样式 ***********************/
.top-ban{
    width: 100%;
    height: 15.7vw;
}
.bottom-ban{
    width: 100%;
    height: 14.2vw;
}

/*********************** section ***********************/
section{
    width: 100%;
}
section img{
    width: 100vw;
}
section p{
    box-sizing: border-box;
    padding: 0 3.6vw;
    margin-top: 10vw;

    display: flex;
    justify-content: space-between;
}
section p img{
    width: 44vw;
    border-radius: 1.6vw;
    display: block;
    cursor: pointer;
}

</style>